package com.mutual.assistance.user.api;


import com.mutual.assistance.user.service.CodeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @author chenyuxin
 * @version 1.0
 * @description 验证码控制器
 * @date 2023/4/21 22:12
 */
@Controller
@Api(value = "验证码请求接口", tags = "验证码请求接口")
public class CheckController {

    @Resource
    private CodeService codeService;

    @GetMapping("/captcha")
    @ApiOperation("获取验证码")
    public void getRole(HttpServletResponse response) {
        codeService.getCode(response);
    }

}
